package com.ld.security.server.admin.modules.msg.vo;

import com.ld.security.common.core.base.SuperPo;
import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.JoinKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 我参与的消息组
 */
@Data
@JoinKey(
        tableX = "msg_group_user_rel a ",
        tableY = "msg_group b",
        on="a.group_id = b.id"
)
public class MyGroupVo implements SuperVo ,SuperPo {

    @ApiModelProperty("编号")
    @SqlKey(name = "a.id")
    private String id;

    @ApiModelProperty("用户编号")
    @SqlKey(name = "a.user_id")
    private String userId;

    @ApiModelProperty("分组编号")
    @SqlKey(name = "a.group_id")
    private String groupId;

    @ApiModelProperty("标题")
    @SqlKey(name = "b.label")
    private String label;


    @ApiModelProperty("时间")
    @SqlKey(name = "a.crt_time")
    private Date crtTime;

}
